import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import DomHelper from './domHelper';

class Grids extends Component {
    componentDidMount() {
        this.grid = new THREE.GridHelper(1600, 40);
        this.grid.rotation.x = Math.PI * 0.5;
        this.grid.position.z = -2;
        DomHelper.scene.add(this.grid);
    }

    componentWillUnmount() {
        this.grid.remove();
    }

    render() {
        return ( <div/> );
    }
}

export default Grids;
